<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$nrp=$_POST['nrp'];
	$kode=$_POST['kode'];
	$status=$_POST['status'];
	$ttt1=$_POST['ttt1'];
	$ttt2=$_POST['ttt2'];
	$ttt3=$_POST['ttt3'];
	$lain=$_POST['lain'];
	$uts=$_POST['uts'];
	$uas=$_POST['uas'];
	$grade=$_POST['grade'];
	$sks=$_POST['sks'];
	$periode=$_POST['periode'];
	$query=mysql_query("update krs set bu='$status',ttt1='$ttt1',ttt2='$ttt2',ttt3='$ttt3',lain='$lain',uts='$uts',uas='$uas', 
						na='$grade',sks='$sks',periode='$periode' where nrp='$nrp' and kode='$kode'");
	
	if($query)
	{
		echo "Data berhasil diupdate<br>";
		echo "<a href='menu_nilai.php'>Back To Menu Nilai Mahasiswa</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin<br></a>";
	}
	else
	{
		echo "Data gagal diupdate<br>";
		echo "<a href='menu_nilai.php'>Back To Menu Nilai Mahasiswa</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
	}
	}
	else
	header("Location:index.php");
?>	